import {createRouter,createWebHistory} from 'vue-router'

const routes = [
    {
        path:"/",
        name:"login",
        component:()=> import('@/page/login/index.vue')
    },
    {
        path:"/home",
        name:"home",
        component:()=> import('@/page/home/index.vue'),
        children:[
            {
            path:"/sort",
            name:"sort",
            component:()=> import('@/page/notes/sf/sort/index.vue')
            },
            {
            path:"/others",
            name:"others",
            component:()=> import('@/page/notes/sf/others/index.vue')
            },
            {
            path:"/echarts",
            name:"echarts",
            component:()=> import('@/page/notes/echarts/index.vue')
            },
            {
            path:"/upload",
            name:"upload",
            component:()=> import('@/page/notes/others/upload.vue')
            }
        ]
    },
    
]

export const router = createRouter({
    history:createWebHistory(),
    routes:routes
})
export default router
